package com.aabte.springbootopenfeigndemo.account.api;

import com.aabte.springbootopenfeigndemo.core.bean.Response;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "${endpoints.provider}")
@RequestMapping(path = "/account")
public interface AccountApi {

    @RequestMapping(method = RequestMethod.GET, path = "/{id}")
    Response<Account> queryAccountById(@PathVariable(name = "id") String accountId);


}
